package com.corpcredit.model;

// Generated Jul 22, 2008 11:56:54 PM by Hibernate Tools 3.2.0.CR1

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 * Zjxm generated by hbm2java
 */
@Entity
@Table(name = "zjxm")
public class Zjxm implements java.io.Serializable
{

    private Long id;
    private int version;
    private Jbqk jbqk;
    private String username;
    private String operation;
    private Date optdate;
    private String xmmc;
    private String kjhl;
    private String kssj;
    private String yjwcsj;
    private BigDecimal ztz;
    private BigDecimal zyzj;
    private BigDecimal jk;
    private String qt;
    private String yjwlscxy;
    private String yjzjhssj;
    private BigDecimal zhsje;
    private Short xh;

    public Zjxm()
    {
    }

    public Zjxm( Long id )
    {
        this.id = id;
    }

    public Zjxm( Long id,
                 Jbqk jbqk,
                 String username,
                 String operation,
                 Date optdate,
                 String xmmc,
                 String kjhl,
                 String kssj,
                 String yjwcsj,
                 BigDecimal ztz,
                 BigDecimal zyzj,
                 BigDecimal jk,
                 String qt,
                 String yjwlscxy,
                 String yjzjhssj,
                 BigDecimal zhsje,
                 Short xh )
    {
        this.id = id;
        this.jbqk = jbqk;
        this.username = username;
        this.operation = operation;
        this.optdate = optdate;
        this.xmmc = xmmc;
        this.kjhl = kjhl;
        this.kssj = kssj;
        this.yjwcsj = yjwcsj;
        this.ztz = ztz;
        this.zyzj = zyzj;
        this.jk = jk;
        this.qt = qt;
        this.yjwlscxy = yjwlscxy;
        this.yjzjhssj = yjzjhssj;
        this.zhsje = zhsje;
        this.xh = xh;
    }

    @Id
    @Column(name = "ID", unique = true, nullable = false)
    @GeneratedValue(strategy=GenerationType.AUTO)
    public Long getId()
    {
        return this.id;
    }

    public void setId( Long id )
    {
        this.id = id;
    }

    @Version
    @Column(name = "version", nullable = false)
    public int getVersion()
    {
        return this.version;
    }

    public void setVersion( int version )
    {
        this.version = version;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "jbq_ID")
    public Jbqk getJbqk()
    {
        return this.jbqk;
    }

    public void setJbqk( Jbqk jbqk )
    {
        this.jbqk = jbqk;
    }

    @Column(name = "username", length = 50)
    public String getUsername()
    {
        return this.username;
    }

    public void setUsername( String username )
    {
        this.username = username;
    }

    @Column(name = "operation", length = 20)
    public String getOperation()
    {
        return this.operation;
    }

    public void setOperation( String operation )
    {
        this.operation = operation;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "optdate", length = 23)
    public Date getOptdate()
    {
        return this.optdate;
    }

    public void setOptdate( Date optdate )
    {
        this.optdate = optdate;
    }

    @Column(name = "xmmc", length = 50)
    public String getXmmc()
    {
        return this.xmmc;
    }

    public void setXmmc( String xmmc )
    {
        this.xmmc = xmmc;
    }

    @Column(name = "kjhl", length = 100)
    public String getKjhl()
    {
        return this.kjhl;
    }

    public void setKjhl( String kjhl )
    {
        this.kjhl = kjhl;
    }

    @Column(name = "kssj", length = 10)
    public String getKssj()
    {
        return this.kssj;
    }

    public void setKssj( String kssj )
    {
        this.kssj = kssj;
    }

    @Column(name = "yjwcsj", length = 20)
    public String getYjwcsj()
    {
        return this.yjwcsj;
    }

    public void setYjwcsj( String yjwcsj )
    {
        this.yjwcsj = yjwcsj;
    }

    @Column(name = "ztz", precision = 18)
    public BigDecimal getZtz()
    {
        return this.ztz;
    }

    public void setZtz( BigDecimal ztz )
    {
        this.ztz = ztz;
    }

    @Column(name = "zyzj", precision = 18)
    public BigDecimal getZyzj()
    {
        return this.zyzj;
    }

    public void setZyzj( BigDecimal zyzj )
    {
        this.zyzj = zyzj;
    }

    @Column(name = "jk", precision = 18)
    public BigDecimal getJk()
    {
        return this.jk;
    }

    public void setJk( BigDecimal jk )
    {
        this.jk = jk;
    }

    @Column(name = "qt", length = 500)
    public String getQt()
    {
        return this.qt;
    }

    public void setQt( String qt )
    {
        this.qt = qt;
    }

    @Column(name = "yjwlscxy", length = 100)
    public String getYjwlscxy()
    {
        return this.yjwlscxy;
    }

    public void setYjwlscxy( String yjwlscxy )
    {
        this.yjwlscxy = yjwlscxy;
    }

    @Column(name = "yjzjhssj", length = 20)
    public String getYjzjhssj()
    {
        return this.yjzjhssj;
    }

    public void setYjzjhssj( String yjzjhssj )
    {
        this.yjzjhssj = yjzjhssj;
    }

    @Column(name = "zhsje", precision = 18)
    public BigDecimal getZhsje()
    {
        return this.zhsje;
    }

    public void setZhsje( BigDecimal zhsje )
    {
        this.zhsje = zhsje;
    }

    @Column(name = "xh")
    public Short getXh()
    {
        return this.xh;
    }

    public void setXh( Short xh )
    {
        this.xh = xh;
    }

}
